package com.elitel.frame.base.component.exportprojectdata;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 获取elasticsearch配置信息
 * created by guoyanfei on 2018/3/28
 */
@Component("elasticSerachInfo")
@ConfigurationProperties(prefix="es")
public class ElasticSerachInfo {
    @Value("${es.address}")
    public  String address;
    @Value("${es.port}")
    public  Integer port;
    @Value("${es.clustername}")
    public  String clustername;
    @Value("${es.updatefetch}")
    public  Integer updatefetch;
    @Value("${es.clientpoolmaxtotal}")
    public  Integer clientpoolmaxtotal;
    @Value("${es.clientpoolminEvictableIdle}")
    public  Integer clientpoolminEvictableIdle;
    @Value("${es.clientpooltimeBetweenEviction}")
    public  Integer clientpooltimeBetweenEviction;

}
